{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
{load href="__PLUGINS__laydate/laydate.js"}
{load href="__JS__jquery.provincesCity.js"}
{load href="__JS__provincesData.js"}
{load href="__JS__areaData_v2.js"}
<!-- 加载编辑器的容器 -->
{:ueditor()}

<style type="text/css">
    #province{
        display: flex;
        align-items: center;
    }
    #province > select{
        margin-right: 2em;
        height: 34px;
        background-color: #FFF;
        background-image: none;
        border: 1px solid #e5e6e7;
        border-radius: 1px;
        color: inherit;
        display: block;
        padding: 6px 12px;
        -webkit-transition: border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s;
        transition: border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s;
        width: 100%;
        font-size: 14px;
    }
    #province > select:last-child{
        margin-right: 0;
    }
</style>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">状态：</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks">
                                            <label>
                                                <input type="radio" value="0" name="hide" {present name="name"}{eq name="name.hide" value="0"}checked{/eq}{else /}checked{/present}>显示
                                            </label>
                                            <label>
                                                <input type="radio" value="1" name="hide" {present name="name"}{eq name="name.hide" value="1"}checked{/eq}{/present}>隐藏
                                            </label>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">分类：</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="type">
                                            <option value="1" {present name="name"}{if condition="$name.type==1"}selected="selected"{/if}{/present}>男性</option>
                                            <option value="2" {present name="name"}{if condition="$name.type==2"}selected="selected"{/if}{/present}>女性</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">名称：</label>
                                    <div class="col-sm-9">
                                        <input name="name" type="text" class="form-control" value="{present name="name"}{$name.name}{/present}">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排序：</label>
                                    <div class="col-sm-9">
                                        <input name="des" type="text" class="form-control" placeholder="值越大越靠前" value="{present name="name"}{$name.des}{else /}0{/present}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}

<script type="text/javascript">

    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })

    });

    function msg(){
        layer.msg("上传成功")
    }

</script>
{include file="public/bottom" /}

